<% layout('layout/layout') %>
<% block('header').append(`<style>
</style>`)%>
<!--banner-->
<section class="banner">
    <div><img src="/images/case_banner.jpg" alt=""></div>
</section>
<div class="com_zi clearfix">
    <div class="left_zi">
        <% include navbar/leftNav %>
        <% include navbar/news %>
    </div>
    <div class="right_zi">
        <div class="bar clearfix">
            <span class="b_tt">在线留言</span>
            <% include navbar/curbar %>
        </div>
        <form id="feedbackForm" name="form1" action="/feedback" method="post" class="form_div">
            <ul class="feed_ul clearfix">
                <li>
                    <div class="div_biao"><img src="/images/ct_tu1.jpg" alt="" />姓名<i>*</i></div>
                    <input type="text" name="name" placeholder=""  onblur="checknn()" id="name"/>
                </li>
                <li>
                    <div class="div_biao"><img src="/images/ct_tu2.jpg" alt="" />手机/电话<i>*</i></div>
                    <input type="text" name="phone" placeholder=""  onblur="checkadd()" id="add"/>
                </li>
                <li>
                    <div class="div_biao"><img src="/images/ct_tu3.jpg" alt="" />公司<i>*</i></div>
                    <input type="text" name="yourphone" placeholder=""  onblur="checkphobe()" id="phone"/>
                </li>
                <li>
                    <div class="div_biao"><img src="/images/ct_tu4.jpg" alt="" />邮 箱<i>*</i></div>
                    <input type="text" name="youremail" placeholder=""  onblur="checkemail()" id="email"/>
                </li>
            </ul>
            <div class="nei_c">
                <div class="div_biao"><img src="/images/ct_tu5.jpg" alt="" />在线留言<i>*</i></div>
                <textarea placeholder="" type="text" name="yourcont" onBlur="checkcont()" id="cont"></textarea>
            </div>
            <div class="yan_div clearfix">
                <div class="div_biao"><img src="/images/ct_tu6.jpg" alt="" />验证码<i>*</i></div>
                <input type="text" name="youryan" onBlur="checkyan()" id="yan"placeholder=""/>
                <img id="imgCode" src="/imgCode" onclick="this.src='/imgCode?time='+Date.now()" alt="" />
                <a href="javascript:;" onclick="document.getElementById('imgCode').click()"  >看不清，换一张</a>
            </div>
            <button class="btn_th">提交</button>
        </form>
        
    </div>
</div>
<% block('footer').append(`<script src='/js/jquery.placeholder.min.js'></script>`)%>
<% block('footer').append(`<script>
    $('#feedbackForm').submit(function () {
        var $this = $(this)
        $.post('/feedback').done(function (res) {
            console.log(res)
        })
        return false
    })
    $(function(){ $('input, textarea').placeholder(); });
</script>`)%>